package domain;

public class DomainController {
	
	private Dice roll;
	private Hero p;

	public DomainController(){
		roll = new Dice();		
	}
	
	public void newGame(){
		
	}
	
	public Unit createPlayer(String name){
		//Roll for stats
		int str = roll.statRoll();
		int dex = roll.statRoll();
		int wis = roll.statRoll();
		int con = roll.statRoll();		
		//Create Player
		p = new Hero(name, str, dex, wis, con);
		//Display Character
		
		return p;
	}

	public String displayPlayer() {
		String output = "[Character Sheet]\n";
		output += "Name: " + p.getName() + " Lvl: " + p.getLevel() + " (HP: " + p.getCurrentHealth() + "/" + p.getMaxHealth() + ") " + "\n";
		output += "Str: " + p.getStrength() + "\n";
		output += "Dex: " + p.getDexterity() + "\n";
		output += "Wis: " + p.getWisdom() + "\n";
		output += "Con: " + p.getConstitution() + "\n";
		
		return output;
	}
	
	

}
